package Test;

import java.util.Scanner;
import java.util.TreeSet;

public class Test {
    public static void main(String[] args) {
        TreeSet tr = new TreeSet();

        Scanner in = new Scanner(System.in);
        for (int i = 0; i < 3; i++){
            System.out.println("请输入数字");
            int number = in.nextInt();
            tr.add(number);
        }
        System.out.println("三个数从小到大的顺序为:");
        System.out.println(tr);
    }
}



//    Calendar c1 = Calendar.getInstance();
//        System.out.println("请输入年月日格式：2000-8-24");
//                Scanner in = new Scanner(System.in);
//                String line = in.next();
//                String[] lines = line.split("-");
//                c1.set(Integer.parseInt(lines[0]), Integer.parseInt(lines[1]) - 1, Integer.parseInt(lines[2]));
//                System.out.println("这是"+ Integer.parseInt(lines[0]) + "年的第" + c1.get(Calendar.DAY_OF_YEAR) + "天");
